package com.xiaojie.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xiaojie.entity.Video;
import com.xiaojie.dao.VideoMapper;
import com.xiaojie.service.IVideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 视频 服务实现类
 * </p>
 *
 * @author xiaojie
 * @since 2022-07-28
 */
@Service
public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements IVideoService {
    @Autowired
    private VideoMapper videoMapper;
    @Override
    public Page<Video> findAllByKeywords(Page<Video> page, Integer id, String title, Integer categoryId, String username) {
        return videoMapper.findAllByKeywords(page,id,title,categoryId,username);
    }
}
